﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void denglu_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(useName.Text) || string.IsNullOrWhiteSpace(password.Text))
            {
                Label1.Text = "账号或密码错误！";
            }
            else
            {
                Session["UseName"] = useName.Text;
                Response.Cookies["PassWord"].Value = password.Text;
               
                Response.Redirect ("Room.aspx");
                
            }
        }
    }
}